<?php

!defined('IN_NOVA') && exit('Access Denied!');

class Index {

	public function start() {
		global $user,$cache;
		@header("content-type: text/html; charset=utf-8");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml" lang = "zh-cn">
<head>
	<meta http-equiv = "content-type" content = "text/html; charset=UTF-8" />
	<meta http-equiv = "content-Language" content = "UTF-8" />
	<title><?php echo L('_ADMIN_MANAGEMENT_') . ' - ' . $cache->config['blogname'] . ' | XKLog' ?></title>
	<link rel="stylesheet" type="text/css" href="include/style.css" />
	<link rel="stylesheet" type="text/css" href="include/skins/tinymce.css">
	<script language="javascript" type="text/javascript" src="include/jquery.js"></script>
	<script language="javascript" type="text/javascript" src="include/jquery.form.js"></script>
	<script language="javascript" type="text/javascript" src="include/admin.js"></script>
<script type="text/javascript">
var KE = {};

KE.lang = {
	source : '切换模式',
	undo : '后退(Ctrl+Z)',
	redo : '前进(Ctrl+Y)',
	cut : '剪切(Ctrl+X)',
	copy : '复制(Ctrl+C)',
	paste : '粘贴(Ctrl+V)',
	plainpaste : '粘贴为无格式文本',
	wordpaste : '从Word粘贴',
	selectall : '全选',
	justifyleft : '左对齐',
	justifycenter : '居中',
	justifyright : '右对齐',
	justifyfull : '两端对齐',
	insertorderedlist : '编号',
	insertunorderedlist : '项目符号',
	indent : '增加缩进',
	outdent : '减少缩进',
	subscript : '下标',
	superscript : '上标',
	title : '标题',
	fontname : '字体',
	fontsize : '文字大小',
	textcolor : '文字颜色',
	bgcolor : '文字背景',
	bold : '粗体',
	italic : '斜体',
	underline : '下划线',
	strikethrough : '删除线',
	removeformat : '删除格式',
	image : '图片',
	flash : '插入Flash',
	media : '插入多媒体',
	table : '插入表格',
	hr : '插入横线',
	emoticons : '插入表情',
	link : '超级连接',
	unlink : '取消超级连接',
	fullscreen : '全屏显示',
	about : '关于',
	print : '打印',
	yes : '确定',
	no : '取消',
	close : '关闭',
	editImage : '图片属性',
	deleteImage : '删除图片',
	editLink : '超级连接属性',
	deleteLink : '取消超级连接',
	noColor : '无填充颜色',
	invalidImg : "请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",
	invalidMedia : "请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",
	invalidWidth : "宽度必须为数字。",
	invalidHeight : "高度必须为数字。",
	invalidBorder : "边框必须为数字。",
	invalidUrl : "请输入有效的URL地址。",
	pleaseInput : "请输入内容",
	cutError : '您的浏览器安全设置不允许使用剪切操作，请使用快捷键(Ctrl+X)来完成。',
	copyError : '您的浏览器安全设置不允许使用复制操作，请使用快捷键(Ctrl+C)来完成。',
	pasteError : '您的浏览器安全设置不允许使用粘贴操作，请使用快捷键(Ctrl+V)来完成。'
};
</script>
<script type="text/javascript" charset="utf-8" src="<?php echo ADMIN_PATH ?>include/kindeditor.js"></script>

</head>
<body id="admin_body">
	<div id="admin_head">
		<span class="left">
		<ul id="menus">
			<li><span><?php echo L('_START_'); ?></span>
				<ul id="admin_menu">
					<li><a href="#" onclick="menuClick(this,'article','add');return false;">内容添加</a>
						<ul>
							<li><a href="#" onclick="menuClick(this,'article','add');return false;">新建文章</a></li>
							<li><a href="#" onclick="menuClick(this,'pages','add');return false;">新建页面</a></li>
						</ul>
					</li>
					<li><a href="#" onclick="menuClick(this,'article','list');return false;"><?php echo L('_CONTENT_MANAGEMENT_'); ?></a>
						<ul>
							<li><a href="#" onclick="menuClick(this,'article','list');return false;"><?php echo L('_ARTICLE_LIST_'); ?></a></li>
							<li><a href="#" onclick="menuClick(this,'comment','list');return false;"><?php echo L('_COMMENT_LIST_'); ?></a></li>
							<li><a href="#" onclick="menuClick(this,'comment','censor');return false;"><?php echo L('_COMMENT_CENSOR_'); ?></a></li>
							<li><a href="#" onclick="menuClick(this,'article','page');return false;"><?php echo L('_HTML_MANAGEMENT_'); ?></a></li>
							<li><a href="#" onclick="menuClick(this,'article','datacheck');return false;"><?php echo L('_DATA_CHECK_'); ?></a></li>
						</ul>
					</li>
					<li id="admin_home"><a href="#" class="selected" onclick="menuClick(this,'welcome');return false;"><?php echo L('_ADMIN_HOME_'); ?></a>
						<ul>
							<li><a href="#" onclick="menuClick(this,'set','config');return false;"><?php echo L('_BASE_SET_'); ?></a></li>
							<li><a href="#" onclick="menuClick(this,'set','menu');return false;"><?php echo L('_MENU_SET_'); ?></a></li>
							<li><a href="#" onclick="menuClick(this,'set','rebuild');return false;"><?php echo L('_REBUILD_CACHE_'); ?></a></li>
						</ul>
					</li>
					<li><a href="#" onclick="menuClick(this,'category');return false;"><?php echo L('_CATEGORY_MANAGEMENT_'); ?></a>
						<ul>
							<li><a href="#" onclick="menuClick(this,'category','sort');return false;"><?php echo L('_CATEGORY_EXIST_'); ?></a></li>
							<li><a href="#" onclick="menuClick(this,'category','add');return false;"><?php echo L('_CATEGORY_ADD_'); ?></a></li>
							<li><a href="#" onclick="menuClick(this,'category','datacheck');return false;"><?php echo L('_DATA_CHECK_'); ?></a></li>
						</ul>
					</li>
					<li><a href="#" onclick="menuClick(this,'style');return false;"><?php echo L('_THEME_MANAGEMENT_'); ?></a></li>
					<li><a href="#" onclick="menuClick(this,'plugin');return false;"><?php echo L('_PLUGIN_MANAGEMENT_'); ?></a></li>
					<li><a href="#" onclick="menuClick(this,'users');return false;"><?php echo L('_USER_MANAGEMENT_'); ?></a></li>
					<li><a href="#" onclick="menuClick(this,'data');return false;"><?php echo L('_DATA_MANAGEMENT_'); ?></a>
						<ul>
							<li><a href="#" onclick="menuClick(this,'data','backup');return false;">数据备份</a></li>
							<li><a href="#" onclick="menuClick(this,'data','restore');return false;">数据恢复</a></li>
							<li><a href="#" onclick="menuClick(this,'data','check');return false;">数据修正</a></li>
							<li><a href="#" onclick="menuClick(this,'upload');return false;"><?php echo L('_UPLOAD_MANAGEMENT_'); ?></a></li>
						</ul>
					</li>
					<li><a href="#" onclick="menuClick(this,'link');return false;"><?php echo L('_LINK_MANAGEMENT_'); ?></a></li>
					<li><a href="#" onclick="menuClick(this,'safe');return false;"><?php echo L('_SAFE_CENTER_'); ?></a></li>
					<li><a href="#" onclick="menuClick(this,'recyled');return false;"><?php echo L('_RECYLED_'); ?></a>
						<ul>
							<li><a href="#" onclick="menuClick(this,'recyled','article');return false;">日志</a></li>
							<li><a href="#" onclick="menuClick(this,'recyled','comment');return false;">评论</a></li>
							<li><a href="#" onclick="menuClick(this,'recyled','user');return false;">用户</a></li>
							<li><a href="#" onclick="menuClick(this,'recyled','link');return false;">链接</a></li>
						</ul>
					</li>
					<li id="admin_help"><a href="#" onclick="menuClick(this,'help');return false;"><?php echo L('_HELP_'); ?></a></li>
					<li><a href="#" onclick="Logout();return false;"><?php echo L('_LOGOUT_'); ?></a></li>
				</ul>
			</li>
		</ul>
		</span>

		<span class="right"><a href="<?php echo APP_PATH ?>../"><?php echo $cache->config['blogname'] ?></a></span>
	</div>
	<div id="admin_loading"><img src="include/loading.gif" /></div>
	<div id="admin_tips" style="visibility:hidden;" onmouseover="msg_onmouseover();" onmouseout="msg_onmouseout();"></div>

	<div id="admin_content"></div>

	<script>
		var AdminPath = '<?php echo ADMIN_PATH ?>';
		var ohash = '<?php echo $cache->ohash ?>';
		new MenuList('menus', 0.9);
		$(document).ready(function(){
			ajax_load('<?php echo ADMIN_PATH ?>','welcome',null);
		});
	</script>

	<div id="admin_copyright">Powered By <a href="http://www.xklog.org/" target="_blank">XKLog V<?php echo XKLOG_VERSION ?></a></div>

</body>
</html>
<?php
	}

}
?>
